package com.gfxy.modules.items.service;

import com.gfxy.modules.common.entity.MemberList;
import com.gfxy.modules.items.entity.teachingresult.TeachingResult;
import org.jeecg.common.api.vo.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @author: lijixin 2021/10/29 5:25 下午
 */
public interface IProjectGfxyService<T> {

    /**
     * 添加一对多
     *
     */
    public void saveMain(T t, List<MemberList> memberLists) ;

    /**
     * 修改一对多
     *
     */
    public void updateMain(T e,List<MemberList> memberLists);

    /**
     * 删除一对多
     */
    public void delMain (String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain (Collection<? extends Serializable> idList);

    Result<?> importExcel(MultipartFile file) throws IOException;

    Double getTotalScore(T t);

    public Double[] getMemberListScore(double totalScore, int memberNum);

    public void passBatch(Collection<? extends Serializable> idList, String isPass);

    TeachingResult getTeachingResultContent(MemberList memberList) throws NoSuchFieldException;

}
